Move is_viewable() test further inside the function, since removing the
authorOwen Taylor <otaylor@redhat.com>
Wed, 2 Aug 2000 19:07:00 +0000 (19:07 +0000)
committerOwen Taylor <otaylor@src.gnome.org>
Wed, 2 Aug 2000 19:07:00 +0000 (19:07 +0000)
Wed Aug  2 14:57:38 2000  Owen Taylor  <otaylor@redhat.com>

* gdk/gdkwindow.c (gdk_window_process_updates_internal): Move
is_viewable() test further inside the function, since removing the
window from the redraw list without clearing ->update_area
was also very broken.

ChangeLog
ChangeLog.pre-2-0
ChangeLog.pre-2-10
ChangeLog.pre-2-2
ChangeLog.pre-2-4
ChangeLog.pre-2-6
ChangeLog.pre-2-8
gdk/gdkwindow.c

index dc4697d1c76766e81314595554b9d06ea0a39d0b..1c946cd112693823c55b89e1bc469b403a2cb28c 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+Wed Aug  2 14:57:38 2000  Owen Taylor  <otaylor@redhat.com>
+
+       * gdk/gdkwindow.c (gdk_window_process_updates_internal): Move
+       is_viewable() test further inside the function, since removing the 
+       window from the redraw list without clearing ->update_area
+       was also very broken.
+
 2000-08-02  Tor Lillqvist  <tml@iki.fi>
 
        * configure.in: Check for <unistd.h>.
index dc4697d1c76766e81314595554b9d06ea0a39d0b..1c946cd112693823c55b89e1bc469b403a2cb28c 100644 (file)
@@ -1,3 +1,10 @@
+Wed Aug  2 14:57:38 2000  Owen Taylor  <otaylor@redhat.com>
+
+       * gdk/gdkwindow.c (gdk_window_process_updates_internal): Move
+       is_viewable() test further inside the function, since removing the 
+       window from the redraw list without clearing ->update_area
+       was also very broken.
+
 2000-08-02  Tor Lillqvist  <tml@iki.fi>
 
        * configure.in: Check for <unistd.h>.
index dc4697d1c76766e81314595554b9d06ea0a39d0b..1c946cd112693823c55b89e1bc469b403a2cb28c 100644 (file)
@@ -1,3 +1,10 @@
+Wed Aug  2 14:57:38 2000  Owen Taylor  <otaylor@redhat.com>
+
+       * gdk/gdkwindow.c (gdk_window_process_updates_internal): Move
+       is_viewable() test further inside the function, since removing the 
+       window from the redraw list without clearing ->update_area
+       was also very broken.
+
 2000-08-02  Tor Lillqvist  <tml@iki.fi>
 
        * configure.in: Check for <unistd.h>.
index dc4697d1c76766e81314595554b9d06ea0a39d0b..1c946cd112693823c55b89e1bc469b403a2cb28c 100644 (file)
@@ -1,3 +1,10 @@
+Wed Aug  2 14:57:38 2000  Owen Taylor  <otaylor@redhat.com>
+
+       * gdk/gdkwindow.c (gdk_window_process_updates_internal): Move
+       is_viewable() test further inside the function, since removing the 
+       window from the redraw list without clearing ->update_area
+       was also very broken.
+
 2000-08-02  Tor Lillqvist  <tml@iki.fi>
 
        * configure.in: Check for <unistd.h>.
index dc4697d1c76766e81314595554b9d06ea0a39d0b..1c946cd112693823c55b89e1bc469b403a2cb28c 100644 (file)
@@ -1,3 +1,10 @@
+Wed Aug  2 14:57:38 2000  Owen Taylor  <otaylor@redhat.com>
+
+       * gdk/gdkwindow.c (gdk_window_process_updates_internal): Move
+       is_viewable() test further inside the function, since removing the 
+       window from the redraw list without clearing ->update_area
+       was also very broken.
+
 2000-08-02  Tor Lillqvist  <tml@iki.fi>
 
        * configure.in: Check for <unistd.h>.
index dc4697d1c76766e81314595554b9d06ea0a39d0b..1c946cd112693823c55b89e1bc469b403a2cb28c 100644 (file)
@@ -1,3 +1,10 @@
+Wed Aug  2 14:57:38 2000  Owen Taylor  <otaylor@redhat.com>
+
+       * gdk/gdkwindow.c (gdk_window_process_updates_internal): Move
+       is_viewable() test further inside the function, since removing the 
+       window from the redraw list without clearing ->update_area
+       was also very broken.
+
 2000-08-02  Tor Lillqvist  <tml@iki.fi>
 
        * configure.in: Check for <unistd.h>.
index dc4697d1c76766e81314595554b9d06ea0a39d0b..1c946cd112693823c55b89e1bc469b403a2cb28c 100644 (file)
@@ -1,3 +1,10 @@
+Wed Aug  2 14:57:38 2000  Owen Taylor  <otaylor@redhat.com>
+
+       * gdk/gdkwindow.c (gdk_window_process_updates_internal): Move
+       is_viewable() test further inside the function, since removing the 
+       window from the redraw list without clearing ->update_area
+       was also very broken.
+
 2000-08-02  Tor Lillqvist  <tml@iki.fi>
 
        * configure.in: Check for <unistd.h>.
index d019b7c20657dc5f8c36c86513406c1a2fbaafb4..bad3113e63d84ee01452fb56e046919217689c47 100644 (file)
@@ -1416,9 +1416,6 @@ gdk_window_process_updates_internal (GdkWindow *window)
   GdkWindowObject *private = (GdkWindowObject *)window;
   gboolean save_region = FALSE;
 
-  if (!gdk_window_is_viewable (window))
-    return;
-
   /* If an update got queued during update processing, we can get a
    * window in the update queue that has an empty update_area.
    * just ignore it.
@@ -1428,7 +1425,7 @@ gdk_window_process_updates_internal (GdkWindow *window)
       GdkRegion *update_area = private->update_area;
       private->update_area = NULL;
       
-      if (gdk_event_func)
+      if (gdk_event_func && gdk_window_is_viewable (window))
        {
          GdkEvent event;
          GdkRectangle window_rect;